package com.tuling.vipes.bean;

import lombok.Data;
import java.util.List;

@Data
public class Product {
    private String id;
    private String name;
    private String description;
    private double price;
    private String category;
    private GeoLocation location; // 经纬度信息
    private List<Detail> details; // 子属性（内嵌类型）

    // 经纬度信息
    @Data
    public static class GeoLocation {
        private double lat; // 纬度
        private double lon; // 经度
    }

    // 子属性（内嵌类型）
    @Data
    public static class Detail {
        private String key;
        private String value;
    }
}